
<div class="common-tit">
  <h2>记录信息</h2>
  <span>学员管理 > 学员列表 > 记录信息</span>
</div>
<div class="course-box">
  <h3 class="t-record">
    <i>交易记录</i>
  </h3>
  <div class="curlist-con sel-curl">
    <div class="scrollbox">
      <table>
        <thead>
          <tr>
            <th class="sturt-name">商品名称</th>
            <th class="sturt-num">数量</th>
            <th class="sturt-p">价格</th>
            <th class="sturt-ope">操作人</th>
            <th class="sturt-t">购买时间</th>
          </tr>
        </thead>
        <tbody>
          <% @orders.each do |order| %>
            <tr>
              <td><%= order.good.name %></td>
              <td><%= order.amount %></td>
              <td><%= order.real_price %></td>
              <td><%= order.employee.name if order.employee_id %></td>
              <td class="sturt-t">
                <span><%= order.created_at.strftime("%Y-%m-%d %H : %M") %></span>
              </td>
            </tr>
          <%end%>
        </tbody>
      </table>
      <div class="apple_pagination">
        <%= paginate @orders, :container => false %>
      </div>
    </div>
  </div>
</div>
<script src="/assets/js/common.js"></script>
